<?php
//File xu ly - ket noi csdl
defined('_JEXEC') or die;

class modNewDayHelper{
	public static function getGreeting(){
		return 'Message from th helper';
	}
	
	/*Dem so session trong bang sesseion*/
	public static function getCatalog(){
		$db=JFactory::getDBO();
		
		$query = $db->getQuery(true);
		$query->select('id as id, name as title');
		$query->from('aas_app_category b');
		$query->where('is_delete=0');
	
		$db->setQuery($query);
		
		return $db->loadObjectList();
	}
}